Path 1: 12 calls (1.0)

'foo' (3) 'Click' (3) '\n' (3) 'Rich' (3)

'foo' (3) 'Click' (3) '\n' (3) 'Rich' (3)

1def escape_text(text: str) -> str:
2            """HTML escape text and replace spaces with nbsp."""
3            return escape(text).replace(" ", " ")